import Login from "./views/Login.vue";
import Home from "./views/Home.vue";

// 用户管理
import goodsQuery from "./views/goodsManage/goodsQuery.vue";

import orderQuery from "./views/ordersManage/orderQuery.vue";


const isHidden = false;

let routes = [
    {
        path: "/login",
        component: Login,
        name: "登录",
        hidden: true
    },
    {
        path: "/",
        component: Home,
        name: "商品管理",
        hidden: isHidden,
        iconCls: "el-icon-view", //图标样式class
        children: [
            {
                path: "/goodsQuery",
                component: goodsQuery,
                name: "商品查询",
                hidden: isHidden
            },
            {
                path: "/orderQuery",
                component: orderQuery,
                name: "晒单数据",
                hidden: isHidden
            },
        ]
    },
];

export default routes;
